﻿#region

using System.Collections.Generic;
using System.Linq;

#endregion

namespace Lab.DataContext.DataContext {
    public partial class DataContextLinqToSqlDataContext : IDataContext {
        public void InsertInTable<TEntity>(TEntity dataObject) where TEntity : class {
            GetTable<TEntity>().InsertOnSubmit(dataObject);
        }

        public List<skill> GetSkills() {
            return skills.ToList();
        }

        public List<kind_of_activity> GetKindOfActivities() {
            return kind_of_activities.ToList();
        }

        public List<employer> GetEmployers() {
            return employers.ToList();
        }

        public List<applicant> GetApplicants() {
            return applicants.ToList();
        }

        public List<vacancy> GetVacancies() {
            return vacancies.ToList();
        }

        public List<deal> GetDeals() {
            return deals.ToList();
        }
    }
}